﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tools;

namespace EntityPet
{
    /// <summary>
    /// 宠物信息表
    /// </summary>
    public class Pet_Information
    {
        /// <summary>
        /// 唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid ID { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 品种
        /// </summary>
        public bool Type { get; set; }

        /// <summary>
        /// 宠物名
        /// </summary>
        [StringLength(20)]
        public String? PetName { get; set; }

        /// <summary>
        /// 体重
        /// </summary>
        [Required]
        public Decimal Weight { get; set; }

        /// <summary>
        /// 所办理的业务
        /// </summary>
        [Required]
        public Job Business { get; set; }
    }

}
